package com.hdw.job.bean.model;

import java.io.Serializable;
import java.util.Date;

public class EtlIndexsql implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idIndexsql;

    private String idIndex;

    private String naIndex;

    private String sqlWhere;

    private String sqlVal;

    /**
     * 用于gruop 统计
     */	
    private String grpDtfld;

    /**
     * 部分场景无法装配可能需要手写sql
     */	
    private String sqlAll;

    private Date dtSysCre;

    private Date dtSysModi;

    public String getIdIndexsql() {
        return idIndexsql;
    }

    public void setIdIndexsql(String idIndexsql) {
        this.idIndexsql = idIndexsql;
    }

    public String getIdIndex() {
        return idIndex;
    }

    public void setIdIndex(String idIndex) {
        this.idIndex = idIndex;
    }

    public String getNaIndex() {
        return naIndex;
    }

    public void setNaIndex(String naIndex) {
        this.naIndex = naIndex;
    }

    public String getSqlWhere() {
        return sqlWhere;
    }

    public void setSqlWhere(String sqlWhere) {
        this.sqlWhere = sqlWhere;
    }

    public String getSqlVal() {
        return sqlVal;
    }

    public void setSqlVal(String sqlVal) {
        this.sqlVal = sqlVal;
    }

    public String getGrpDtfld() {
        return grpDtfld;
    }

    public void setGrpDtfld(String grpDtfld) {
        this.grpDtfld = grpDtfld;
    }

    public String getSqlAll() {
        return sqlAll;
    }

    public void setSqlAll(String sqlAll) {
        this.sqlAll = sqlAll;
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EtlIndexsql other = (EtlIndexsql) that;
        return (this.getIdIndexsql() == null ? other.getIdIndexsql() == null : this.getIdIndexsql().equals(other.getIdIndexsql()))
            && (this.getIdIndex() == null ? other.getIdIndex() == null : this.getIdIndex().equals(other.getIdIndex()))
            && (this.getNaIndex() == null ? other.getNaIndex() == null : this.getNaIndex().equals(other.getNaIndex()))
            && (this.getSqlWhere() == null ? other.getSqlWhere() == null : this.getSqlWhere().equals(other.getSqlWhere()))
            && (this.getSqlVal() == null ? other.getSqlVal() == null : this.getSqlVal().equals(other.getSqlVal()))
            && (this.getGrpDtfld() == null ? other.getGrpDtfld() == null : this.getGrpDtfld().equals(other.getGrpDtfld()))
            && (this.getSqlAll() == null ? other.getSqlAll() == null : this.getSqlAll().equals(other.getSqlAll()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdIndexsql() == null) ? 0 : getIdIndexsql().hashCode());
        result = prime * result + ((getIdIndex() == null) ? 0 : getIdIndex().hashCode());
        result = prime * result + ((getNaIndex() == null) ? 0 : getNaIndex().hashCode());
        result = prime * result + ((getSqlWhere() == null) ? 0 : getSqlWhere().hashCode());
        result = prime * result + ((getSqlVal() == null) ? 0 : getSqlVal().hashCode());
        result = prime * result + ((getGrpDtfld() == null) ? 0 : getGrpDtfld().hashCode());
        result = prime * result + ((getSqlAll() == null) ? 0 : getSqlAll().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idIndexsql=").append(idIndexsql);
        sb.append(", idIndex=").append(idIndex);
        sb.append(", naIndex=").append(naIndex);
        sb.append(", sqlWhere=").append(sqlWhere);
        sb.append(", sqlVal=").append(sqlVal);
        sb.append(", grpDtfld=").append(grpDtfld);
        sb.append(", sqlAll=").append(sqlAll);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }
}